import time
from selenium import webdriver
from selenium.webdriver.common.by import By


driver=webdriver.Edge()
driver.maximize_window()
driver.get('https://www.jiuxian.com/')
time.sleep(5)

# 定位元素  门店加盟
yuansu=driver.find_element(By.XPATH,'//*[@id="httpjiuxianxlsjiuxiancom"]')

# 文本值
print(yuansu.text)
# 获取元素具体属性 比如class
print(yuansu.get_attribute('class'))
# 获取元素宽高
print(yuansu.size)
# 获取元素坐标
print(yuansu.location)
# 打印元素是否可用
print(yuansu.is_enabled())
# 打印元素是否显示
print(yuansu.is_displayed())
# 打印元素是否被选中
print(yuansu.is_selected())